/*
Jack Morris
11/20/14
Page 71
Assinment 2
*/
#include <stdio.h>

int main()
{
  int a, b, c, d, e;//original, first imput, what to subtract 
  printf("Enter a three-digit number: ");
  scanf("%d", &a);
  b = a / 100;
  c = b * 10;
  d = a / 10 - c;
  e = a - c * 10 - d * 10;
  printf("The reversal is: %d%d%d", e, d, b);
  return(0);
}